<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<link rel="stylesheet" href="style.css">
	</head>
<title>Register User</title>
</head>

<body>

<p><b>Feature Name:</b> Register User<br><b>Feature URL:</b>&nbsp; /api/user/register.php<br>
<b>Parameters: </b><br>&nbsp;&nbsp;&nbsp;
verbose<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Activates verbose mode, Integer(0-disabled, 1-enabled), Optional (0 by 
default)<br>&nbsp;&nbsp;&nbsp;
username<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- The user's username, string, Not Optional<br>&nbsp;&nbsp;&nbsp; pass<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- The user's password, string, Not Optional<br>&nbsp;&nbsp;&nbsp; xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Defines if returns xml, Integer(0-disabled, 1-enabled), Optional (0 by 
default)<br><br>
<b>Examples:</b><br>
/api/user/register.php?&amp;username=teste&amp;pass=teste <br>
/api/user/register.php?&amp;username=teste2&amp;pass=teste2 <br>
/api/user/register.php?&amp;username=teste3&amp;pass=teste3&amp;xml=1</p>
<b>Output:</b><br>
{"Result":{"Register":"success"}<br>
{"Result":{"Register":"alreadyExistentUsernameError"}<br>
{"Result":{"Register":"dbError"}<br><br>
</body>
</html>
<xmp>
<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
  <Register>success</Register>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
  <Register>alreadyExistentUsernameError</Register>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
  <Register>dbError</Register>
</Result>